import React from 'react';
import PropTypes from 'prop-types';

import './index.less';

export default function Results({ status, subTitle }) {
  return (
    <div className="antikon_result">
      <div className="antikon_img">
        <img
          src={
            status === '404'
              ? require(`./asstes/404.png`)
              : status === 'noConfig'
              ? require(`./asstes/noConfig.png`)
              : require(`./asstes/404.png`)
          }
          alt={status}
        />
      </div>
      <div className="antikon_subTitle">{subTitle}</div>
    </div>
  );
}

Results.propTypes = {
  status: PropTypes.string,
  subTitle: PropTypes.string,
};
Results.defaultProps = {
  status: '404',
  subTitle: '暂无数据',
};
